import Vue from 'vue';
import VueRouter, { RouteConfig } from 'vue-router';

Vue.use(VueRouter);

const routes: RouteConfig[] = [
  {
    path: '/',
    redirect: {
      name: 'formDetail',
    },
  },
  {
    path: "/formDetail",
    name: 'formDetail',
    component: () => import('./../extensions/view/custom-form-detail.vue'),
  }
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes,
});

export default router;
